//
//  ZNavigationViewController.m
//  ZQLearn
//
//  Created by macfeel on 2019/4/19.
//  Copyright © 2019 macfeel. All rights reserved.
//

#import "ZNavigationViewController.h"

@interface ZNavigationViewController ()

@end

@implementation ZNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.barTintColor = kSystemtBlue;
    ///去掉nav底部黑线
    self.navigationBar.shadowImage = [UIImage new];
    // Do any additional setup after loading the view.
}


///重写此方法 为了避免每次跳转都要进行隐藏操作

-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (self.childViewControllers.count==1) {
        viewController.hidesBottomBarWhenPushed = YES; //viewController是将要被push的控制器
    }
    [super pushViewController:viewController animated:animated];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
